package com.glorysoft.sunnypda.entity

import androidx.databinding.BaseObservable
import androidx.databinding.Bindable
import java.io.Serializable

/**
 * FileName: EqpByAreaListEntity
 * Author: XJH
 * Date: 2022/3/14 19:01
 * Description:
 * History:
 */
data class EqpByAreaListEntity(
    var EQPLIST : List<EqpByAreaInfoEntity> = arrayListOf(),
    var EQPS : List<EqpDataInfoEntity> = arrayListOf(),
    var RECIPELIST : List<EqpByAreaInfoEntity> = arrayListOf(),
    var EQPTYPE : String? = "",
    var SHOWNAME : String? = "",
) : Serializable {
}
class EqpDataInfoEntity : Serializable,BaseObservable(){
    var EQPID : String? = ""
    var EQPNAME : String? = ""
    @get:Bindable
    var isGone: Boolean = false
    set(value){
        field = value
        notifyChange()
    }
}

class EqpByAreaInfoEntity : Serializable,BaseObservable(){
    var EQPID : String? = ""
    var EQUIPMENTID : String? = ""
    var STATUS : String? = ""
    var MSTATUS : String? = ""
    var VERSION : String? = ""
    var VERSIONTYPE : String? = ""
    var MVERSIONTYPE : String? = ""
    var EQPSTATE : String? = ""
    var CHANGEOP : String? = ""
    var CHANGETIME : String? = ""
    var EQPCONSTATE : String? = ""
    var EQPNAME : String? = ""
    var RECIPENAME : String? = ""
    var RECIPEVERSION : String? = ""
    var RECIPESTATE : String? = ""
    var POSITION : String? = ""
    @get:Bindable
    var isSelector: Boolean = false
    set(value){
        field = value
        notifyChange()
    }

    var RECIPEVERSIONTYPE : String? = ""
}